// pages/nav/nav.js
const classification = require("../../static/classification")
const {mongoList} = require("../../static/data")
Page({
  data: {
    classification:[]
  },
  click(e){
    console.log(mongoList[e.currentTarget.dataset.id]);
    wx.setStorageSync('nav', mongoList[e.currentTarget.dataset.id])
    wx.switchTab({
      url: `../index/index`
    });
  },
  onLoad: function (options) {
    this.setData({
      classification,
    })
  },
})